package ex.com.jm.food.service.impl;
import java.util.List;



import ex.com.jm.food.dao.CompanyMenuDao;
import ex.com.jm.food.entity.Menu;
import ex.com.jm.food.entity.PicStyle;
import ex.com.jm.food.service.CompanyMenuService;

/**
 * 企业对菜单管理业务逻辑层接口实现
 * @author wangshenfeng
 *
 */
public class CompanyMenuServiceImpl implements CompanyMenuService {
	private CompanyMenuDao companyMenuDao;
	

	public CompanyMenuDao getCompanyMenuDao() {
		return companyMenuDao;
	}


	public void setCompanyMenuDao(CompanyMenuDao companyMenuDao) {
		this.companyMenuDao = companyMenuDao;
	}


	@Override
	public Object saveMenu(Menu m) {
		// TODO Auto-generated method stub
		return this.getCompanyMenuDao().saveMenu(m);
	}


	



	@Override
	public void deleteMenu(String mID) {
		// TODO Auto-generated method stub
		this.getCompanyMenuDao().deleteMenu(mID);
	}


	@Override
	public List<Menu> selectMenu(int initPage, int pageRow, String menuName,
			Integer type, Integer status, String comID, String s_date,
			String e_date, String order, String sort) {
		// TODO Auto-generated method stub
		return this.getCompanyMenuDao().selectMenu(initPage, pageRow, menuName, type, status, comID, s_date, e_date, order, sort);
	}


	@Override
	public int menuConut(String comID, String menuName, Integer type,
			Integer status, String s_date, String e_date) {
		// TODO Auto-generated method stub
		return this.getCompanyMenuDao().menuConut(comID, menuName, type, status, s_date, e_date);
	}




	@Override
	public List<PicStyle> getPicStyles() {
		// TODO Auto-generated method stub
		return this.getCompanyMenuDao().getPicStyles();
	}


	@Override
	public Menu editMenu(String menuId) {
		// TODO Auto-generated method stub
		return this.getCompanyMenuDao().editMenu(menuId);
	}


	@Override
	public void updateMenu(Menu menu) {
		// TODO Auto-generated method stub
		this.getCompanyMenuDao().updateMenu(menu);
	}



}
